package com.atguigu;

/**
 * @ClassName : Test
 * @Author : 骆发茂
 * @Date: 2021/12/11 10:36
 * @Description :
 */
public class Test {
    public static void main(String[] args) {
        StringBuffer buf=new StringBuffer("Hard ");
        String aString = "Waxworks";
        buf.append(aString,3,4);
        StringBuffer buff=new StringBuffer("Hard ");
        buff.append(aString);
        System.out.println(buf);
        System.out.println(buff);
    }


}